package com.stu.day08.shape;

/**
 * 演示:
 *
 * @author mm
 * @date 2025/1/13 16:38:00
 */
public class Circle extends AbstractShape {
    double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double girth() {
        return Math.PI * radius * 2;
    }

    public double area(){
        return Math.PI * radius * radius;
    }
}
